import json

class ReadUtil:
    @classmethod
    def read_config(cls,file_path,key):
        with open(file_path,"r",encoding="utf-8") as f:
            data = json.load(f).get(key)
            list1=[]
            for item in data:
                temp = tuple(item.values())
                list1.append(temp)
            return list1
if __name__ == '__main__':
    result = ReadUtil.read_config(r"..\data\register_login.json","image_code")
    print(result)

